package com.cw.realtime.common
package bean

case class UserLoginBean(
  back_ct: Long, // 回流用户，未登录7天以上
  uu_ct: Long, // 独立用户
  ts: Long,
  stt: String = "",
  edt: String = "",
  cur_date: String = ""
) {
  def +(that: UserLoginBean): UserLoginBean =
    UserLoginBean(back_ct + that.back_ct, uu_ct + that.uu_ct, ts, stt, edt, cur_date)

  def transWindowRange(stt: String, edt: String, cur_date: String): UserLoginBean =
    UserLoginBean(back_ct, uu_ct, ts, stt, edt, cur_date)
}
